<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<?php
//    login.php
//    author: Kyle Racette
//    copyright 2007 The Pin Project


if (isset($_SESSION['username']))     //    if (already logged in)
{
?>

<html>
<head>
<title>Hello <?php echo $_SESSION['username']; ?>! </title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="HAPedit 3.1">
<link rel="stylesheet" type="text/css" href="login.css" />
</head>
<body>
    <div class="wrapper">
	 <div class="logout">
	      <a href="/members/logout.php">logout </a>
	 </div>
         <div class="head">
              <img src="/members/images/head.png" alt="Welcome <?php echo $_SESSION['username']; ?>" />
         </div>
         <div class="body">
              <h1 class="loggedin">Hello <?php echo $_SESSION['username']; ?>!</h1>
              <div class="photo">
                   <img src="#" alt="no image available">
              </div>
              <ul id="loggedin" class="list">
                  <li class="listel"><a href="/members/profile.php">Your Profile</a></li>
                  <li class="listel"><a href="/members/messageboard.php">Message Board</a></li>
                  <li class="listel"><a href="/members/content.php">Access your stuff</a></li>
                  <li class="listel"><a href="/frame.php?page=home.php">The Pin Project</a></li>
              </ul>




<?php
}
else    //if (not logged in)
{
?>


<html>

<head>
<title>Login</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="HAPedit 3.1">
<link rel="stylesheet" type="text/css" href="login.css" />
</head>
<body>
      <div class="wrapper">
           <div class="head">
                <img src="/members/images/head.png" alt="Login here" />
           </div>
           <div class="body">
                <form class="login_form" name="login" method="POST" action="/members/checklogin.php">
                      <div class="login_username">
                           Username: <input type="text" name="username" />
                      </div>
                      <div class="login_password">
                           Password: <input type="password" name="password" />
                      </div>
                      <div class="login_submit">
                           <input type="submit" name="submit" value="Login" />
                      </div>
                      <div class="login_reset">
                           <input type="reset" name="reset" value="Reset" />
                      </div>
                </form>
           </div>
           <div class="forget">
                <a href="forgotPassword.php">Forgot Password? </a>
           </div>
           <div class="login_create">
                <br>Not a member?
                <br><a href="createAccount.php">Sign Up Now! </a>
           </div>
      </div>


<?php
}
?>





           
</body>

</html>

